package com.rc.pojo.dto.farm;

import com.rc.common.model.ImageModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 农场表 实体类。
 *
 * @author sym
 * @since 2024-05-31
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UpdateFarmDTO{
    @ApiModelProperty("不需要传递")
    private Long id;

    @NotBlank(message = "农场名称不能为空")
    @ApiModelProperty("农场名称")
    private String name;

    @NotBlank(message = "农场地址不能为空")
    @ApiModelProperty("农场地址")
    private String address;

    @ApiModelProperty("农场描述")
    private String description;

    @ApiModelProperty("农场轮播图")
    private List<ImageModel> imgs;

    @ApiModelProperty("农场适宜季节")
    private String suitableMonth;

    @ApiModelProperty("农场主植物")
    private String mainPlant;

    @ApiModelProperty("农场面向人群")
    private String mainPopulation;

    @ApiModelProperty("农场主要活动")
    private String mainActivity;

    @NotNull
    @ApiModelProperty("经度")
    private Double lng;

    @NotNull
    @ApiModelProperty("纬度")
    private Double lat;
}
